{{- $groupId := .Get "groupId" | default "org.mongodb" -}}
{{- $artifactId := .Get "artifactId" -}}
{{- $version := .Get "version" -}}
{{- $scalaVersion := .Get "scalaVersion" -}}
{{- $classifier := .Get "classifier" -}}
{{- $snapshot := in $version "SNAPSHOT" -}}

{{- if $snapshot -}}
<section class="maven">
<pre><code class="ini">
&lt;dependencies&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;{{$groupId}}&lt;/groupId&gt;
        &lt;artifactId&gt;{{$artifactId}}&lt;/artifactId&gt;
        &lt;version&gt;{{$version}}{{- if $scalaVersion -}}_{{$scalaVersion}}{{- end -}}&lt;/version&gt;{{- if $classifier }}
        &lt;classifier&gt;{{$classifier}}&lt;/classifier&gt;{{- end }}
    &lt;/dependency&gt;
&lt;/dependencies&gt;
&lt;repositories&gt;
    &lt;repository&gt;
        &lt;id&gt;sonatype-snapshots&lt;/id&gt;
        &lt;name&gt;Sontatype Snapshots&lt;/name&gt;
        &lt;url&gt;https://oss.sonatype.org/content/repositories/snapshots&lt;/url&gt;
        &lt;snapshots&gt;
            &lt;enabled&gt;true&lt;/enabled&gt;
        &lt;/snapshots&gt;
    &lt;/repository&gt;
&lt;/repositories&gt;
</code></pre>
</section>
<section class="gradle hidden">
<pre><code>
  dependencies {
      compile '{{$groupId}}:{{$artifactId}}:{{$version}}{{- if $scalaVersion -}}_{{$scalaVersion}}{{- end -}}{{- if $classifier -}}:{{$classifier}}{{- end -}}'
  }
  repositories {
    maven {
      url 'https://oss.sonatype.org/content/repositories/snapshots'
    }
  }

</code></pre>
</section>
<section class="sbt hidden">
<pre><code>
  libraryDependencies += "{{$groupId}}" %% "{{$artifactId}}" % "{{$version}}"{{- if $classifier -}} classifier "{{$classifier}}"{{- end -}}

</code></pre>
</section>
{{- else -}}
<section class="maven">
<pre><code class="ini">
&lt;dependencies&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;{{$groupId}}&lt;/groupId&gt;
        &lt;artifactId&gt;{{$artifactId}}&lt;/artifactId&gt;
        &lt;version&gt;{{$version}}{{- if $scalaVersion -}}_{{$scalaVersion}}{{- end -}}&lt;/version&gt;{{- if $classifier }}
        &lt;classifier&gt;{{$classifier}}&lt;/classifier&gt;{{- end }}
    &lt;/dependency&gt;
&lt;/dependencies&gt;

</code></pre>
</section>
<section class="gradle hidden">
<pre><code>
  dependencies {
      compile '{{$groupId}}:{{$artifactId}}:{{$version}}{{- if $scalaVersion -}}_{{$scalaVersion}}{{- end -}}{{- if $classifier -}}:{{$classifier}}{{- end -}}'
  }

</code></pre>
</section>
<section class="sbt hidden">
<pre><code>
  libraryDependencies += "{{$groupId}}" %% "{{$artifactId}}" % "{{$version}}"{{- if $classifier -}} classifier "{{$classifier}}"{{- end -}}

</code></pre>
</section>
{{- end -}}
